package com.cq.hd.order.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 拼团订单统计
 *
 * @author Justin.Chen
 * @since 2024/09/21 15:34
 */
@Data
public class GroupBuyOrderNumStatVo implements Serializable {
    private static final long serialVersionUID = -277596303543215159L;

    @ApiModelProperty(value = "活动id")
    private Long activeId;

    @ApiModelProperty(value = "开团订单数量")
    private Integer groupOrderNum;

    @ApiModelProperty(value = "成团订单数量")
    private Integer successfulGroupOrderNum;

    public Integer getGroupOrderNum() {
        return groupOrderNum == null ? 0 : groupOrderNum;
    }

    public Integer getSuccessfulGroupOrderNum() {
        return successfulGroupOrderNum == null ? 0 : successfulGroupOrderNum;
    }
}
